﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PdxDemo
{
    public class Bootstrapper : Caliburn.Micro.Bootstrapper<ShellViewModel>
    {
        static Bootstrapper()
        {
            var provider = new PDX.Services.ServiceProvider();
            new CustomRegistrationBuilder(provider).RegisterAll();
            PDX.Services.Singletons.ServiceProvider = provider;
        }

        protected override void StartRuntime()
        {
            base.StartRuntime();

            var patches = new System.Windows.ResourceDictionary();
            patches.Source = new Uri("pack://application:,,,/PdxDemo;component/ReuxablesIncPatches.xaml");
            Application.Resources.MergedDictionaries.Add(patches);
        }
    }
}
